<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../../js/jpuery/jquery.js"></script>
    <script src="../../js/vue/vue.js"></script>

</head>
<body>
<div id="app">
    <div>
        <p>{{content}}</p>
        <p>{{count}}</p>
    </div>
</div>
<script>
    var vue = new Vue({
        el: "#app",
        data: {
            content:"",
            count:""
        },
        mounted: function () {
            //发送请求加载数据
            $.get("http://localhost:9000/article/detail", {id:1}, function (data) {
                vue.content = data.content;
                vue.count = data.count;
            })
        },
    });

</script>
</body>
</html>